import os
import sys
# 获取项目的根目录
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
# 把common 当做项目导包的第一目录
sys.path.insert(0,os.path.join(BASE_DIR,'common'))
from project import create_flask_app
from common.settings.development import DevConfig

app = create_flask_app(DevConfig)

if __name__ == '__main__':
    print(app.url_map)
    app.run()
